package com.sunelec.mapper;

import com.sunelec.pojo.Relationship;
import com.sunelec.pojo.Users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: 吴遵明
 * @Description: 用于根据权限查询所有用户
 * @Date: Create in 2018/05/07
 * @Modified By:
 */
public interface TwoLevelUserMapper {
    //根据type权限查询所有用户
    List<Users> selectUsers(@Param("type") int type);

    //查询2级用户，未被关联的3级用户(用户有多个电站是不会重复的，这里只显示用户)
    List<Users> selectAssociateUser(@Param("type") int type);

    //根据所有3级leveluser获得relationship<list>
    List<Relationship> selectRelationshipByLeveluser(List<String> leveluser);
}
